package com.a3dweijing.wetouch2.bean;

import android.support.annotation.NonNull;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Yxd on 2017/11/14.
 */

public class Special implements Serializable,Comparable<Special> {

    /**
     * special_topic_id : 2
     * specialtopic_headline : 独山子招商引资宣传片
     * special_topic_describe : 独山子招商引资宣传片
     * special_topic_img : https://f.expoon.com/sub/user/logo/40/17083116325913298_364x216_2.jpg
     * row : 0
     * beg : 0
     * videoList : []
     */

    private int special_topic_id;
    private String specialtopic_headline;
    private String special_topic_describe;
    private String special_topic_img;
    private int row;
    private int beg;
    private int special_topic_location;
    private List<?> videoList;

    public int getSpecial_topic_id() {
        return special_topic_id;
    }

    public void setSpecial_topic_id(int special_topic_id) {
        this.special_topic_id = special_topic_id;
    }

    public String getSpecialtopic_headline() {
        return specialtopic_headline;
    }

    public void setSpecialtopic_headline(String specialtopic_headline) {
        this.specialtopic_headline = specialtopic_headline;
    }

    public String getSpecial_topic_describe() {
        return special_topic_describe;
    }

    public void setSpecial_topic_describe(String special_topic_describe) {
        this.special_topic_describe = special_topic_describe;
    }

    public String getSpecial_topic_img() {
        return special_topic_img;
    }

    public void setSpecial_topic_img(String special_topic_img) {
        this.special_topic_img = special_topic_img;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getBeg() {
        return beg;
    }

    public void setBeg(int beg) {
        this.beg = beg;
    }

    public int getSpecial_topic_location() {
        return special_topic_location;
    }

    public void setSpecial_topic_location(int special_topic_location) {
        this.special_topic_location = special_topic_location;
    }

    public List<?> getVideoList() {
        return videoList;
    }

    public void setVideoList(List<?> videoList) {
        this.videoList = videoList;
    }

    @Override
    public int compareTo(@NonNull Special o) {
        int i = this.getSpecial_topic_location() - o.getSpecial_topic_location();//先按照年龄排序
        if(i == 0){
            return 1;//如果年龄相等了再用分数进行排序
        }
        return i;
    }
}
